﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 桥接模式
{
    //手机软件抽象类
    abstract class HandsetSoft
    {
        //软件运行方法
        public abstract void Run();
    }
    //具体软件类
    class Game : HandsetSoft
    {
        public override void Run()
        {
            Console.WriteLine("运行手机游戏！");
        }
    }
    class AddressList : HandsetSoft
    {
        public override void Run()
        {
            Console.WriteLine("运行手机通讯录！");
        }
    }
}
